package mortal.game.net
{
	import Engine.RMI.*;
	import com.gengine.manager.*;
	import extend.php.*;
	import flash.display.*;
	import mortal.common.global.*;
	import mortal.game.events.*;
	import mortal.game.mvc.*;
	import mortal.mvc.core.*;
	
	public class RMISessionEvent extends Object implements IRMISessionEvent
	{
		private var alert:Sprite;
		
		public function RMISessionEvent()
		{			
		}
		
		public function onAbandon(session:Session) : void
		{
			Dispatcher.dispatchEvent(new DataEvent(EventName.SocketClose));
			PHPSender.sendToURLByPHP(SenderType.GameSocketClose, ParamsConst.instance.username);
			
		}
		
		private function closeHandler(value:int) : void
		{
			if (ParamsConst.instance.actimUrl)
			{
				BrowerManager.instance.getUrl(ParamsConst.instance.actimUrl);
			}
			
		}
		
	}
}
